Contents | Index | < Browse | Browse >

LETTERoffsetofULETTER Gets a structure member's offset.

Overview
#include <stddef.h>

#define offsetof(s,m) ((unsigned)&((s*)NULL)->m)

Portability
ANSI

Description
"offsetof" is a macro that returns the offset of a structure's member. "s" is the structure type's name, "m" its element's name.

Rückgabe
The structure member's offset as an unsigned integer.